package com.example.test;

/**
 * TODO: 这里要写注释的!
 */
public class Producer implements Runnable {
    private EventStorage eventStorage;
    public Producer(EventStorage eventStorage){
        this.eventStorage= eventStorage;
    }
    @Override public void run() {
        for (int i = 0; i <100 ; i++) {
            eventStorage.set();
        }
    }
}
